<template>
  <div id="app">
    <el-container style="height: 500px; border: 1px solid #eee">
      <el-aside width="200px" style="background-color: rgb(238, 241, 246)">
        <el-menu>
          <el-submenu index="1">
            <template slot="title"
              ><i class="el-icon-message"></i>列表操作</template
            >
            <el-menu-item-group>
              <template slot="title">东方科技</template>
              <el-menu-item index="1-1" @click="toList()"
                >列表管理</el-menu-item
              >
              <el-menu-item index="1-2" @click="toAAA()">财务部</el-menu-item>
            </el-menu-item-group>
          </el-submenu>
        </el-menu>
      </el-aside>

      <el-container>
        <router-view></router-view>
      </el-container>
    </el-container>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {
    toList() {
      this.$router.push("/list");
    },
    toAAA() {
      this.$router.push("/aaa");
    },
  },
};
</script>

<style></style>
